package com.aliyuncs.batchcompute.pojo.v20151111;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;
import org.codehaus.jackson.annotate.JsonProperty;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by guangchun.luo on 16/1/15.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class AutoCluster{


    @JsonProperty("ImageId")
    private String imageId;

    @JsonProperty("ECSImageId")
    private String ECSImageId;

    @JsonProperty("InstanceType")
    private String instanceType;

    @JsonProperty("ResourceType")
    private String resourceType = "OnDemand";

    @JsonProperty("Configs")
    private Configs configs;

    @JsonProperty("UserData")
    private Map<String, String> userData;

    @JsonIgnore
    public Configs getConfigs() {
        return configs;
    }

    @JsonIgnore
    public void setConfigs(Configs configs) {
        this.configs = configs;
    }




    @JsonIgnore
    public Map<String, String> getUserData() {
        return userData;
    }

    @JsonIgnore
    public void setUserData(Map<String, String> userData) {
        this.userData = userData;
    }

    public void addUserData(String key, String value) {
        if(this.userData==null){
            this.userData = new HashMap<String,String>();
        }
        this.userData.put(key, value);
    }

    @JsonIgnore
    public String getImageId() {
        return imageId;
    }
    @JsonIgnore
    public void setImageId(String imageId) {
        this.imageId = imageId;
    }
    @JsonIgnore
    public String getECSImageId() {
        return ECSImageId;
    }
    @JsonIgnore
    public void setECSImageId(String eCSImageId) {
        this.ECSImageId = eCSImageId;
    }


    @JsonIgnore
    public String getInstanceType() {
        return instanceType;
    }

    @JsonIgnore
    public void setInstanceType(String instanceType) {
        this.instanceType = instanceType;
    }

    @JsonIgnore
    public String getResourceType() {
        return resourceType;
    }

    @JsonIgnore
    public void setResourceType(String resourceType) {
        this.resourceType = resourceType;
    }

}
